<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

class ProductColor extends BaseModel
{
    use HasFactory;
    protected $table = 'product_color';
    // 允许批量操作的字段
    protected $fillable = ['product_id','color_id','created_at','updated_at'];

    public function scopeSearch($query,$params)
    {

        return $query;
    }
}
